package com.wego.entity.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import javax.persistence.*;

import com.wego.common.utils.JsonUtil;
import lombok.*;

/**
 * @className: Goods
 * @description: 商品
 * @author: Kuangkeli
 * @date: 2023/07/10 17:01
 **/

/**
    * 商品
    */
@Getter
@Setter
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_goods")
public class Goods implements Serializable {
    /**
     * 编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * 商品名
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 主图
     */
    @Column(name = "pic")
    private String pic;

    /**
     * 图集
     */
    @Column(name = "imgs")
    private String imgs;

    /**
     * 市场价格
     */
    @Column(name = "price1")
    private BigDecimal price1;

    /**
     * 会员价格
     */
    @Column(name = "price2")
    private BigDecimal price2;

    /**
     * 单位
     */
    @Column(name = "unit")
    private String unit;

    /**
     * 库存
     */
    @Column(name = "`storage`")
    private Integer storage;

    /**
     * 卖点
     */
    @Column(name = "selling_point")
    private String sellingPoint;

    /**
     * 显示优先级
     */
    @Column(name = "priority")
    private Integer priority;

    /**
     * 类别编号
     */
    @Column(name = "category_id")
    private Long categoryId;

    /**
     * 商品规格
     */
    @Column(name = "specs")
    private String specs;

    /**
     * 介绍
     */
    @Column(name = "info")
    private String info;

    /**
     * 状态:   0下架  1上架 
     */
    @Column(name = "`state`")
    private Integer state;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;




    private static final long serialVersionUID = 1L;



}